<!DOCTYPE html>
<html>
<meta charset="utf-8">
<meta name="referrer" content="never">
<meta data-draft-node="block" data-draft-type="table" data-size="normal" data-row-style="normal">

<head th:include="include :: header"></head>

<body class="gray-bg">

<div class="container-fluid">
	<div class="row">
		<div class="panel panel-default">
			<div class="panel-heading">
				<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> 条件查找
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">审核状态</div>
								<div class="col-md-7">
									<select id="status" name="status" class="form-control">
										<option Value="">全部</option>
										<option Value="1">待审核</option>
										<option Value="2">审核通过</option>
										<option Value="3">审核不通过</option>
									</select>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">上传时间</div>
								<div class="col-md-7">
									<input type="text" class="form-control" runat="server" id="createTime"
										   name="createTime" />
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">分类</div>
								<div class="col-md-7">
									<select id="classId" name="classId" class="form-control">
										<option Value="">全部</option>
										<option th:each="list,userStat : ${cList}" th:value="${list.id}" th:text="${list.name}"></option>
									</select>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">数据分类</div>
								<div class="col-md-7">
									<select id="isSys" name="isSys" class="form-control">
										<option Value="">全部</option>
										<option value="0">达人数据</option>
										<option value="1">系统数据</option>
									</select>
								</div>
							</div>
						</div>
					</div>
					<!--查询 按钮-->
				</div>
				<div class="row">
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">用户昵称</div>
								<div class="col-md-7">
									<input type="text" id="nickname" name="nickname" class="form-control"/>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">用户口令</div>
								<div class="col-md-7">
									<input type="text" id="word" name="word" class="form-control"/>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">图片ID</div>
								<div class="col-md-7">
									<input type="text" id="id" name="id" class="form-control"/>
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">数据状态</div>
								<div class="col-md-7">
									<select id="isDelete" name="isDelete" class="form-control">
										<option Value="">全部</option>
										<option value="0">删除</option>
										<option value="1">正常</option>
									</select>
								</div>
							</div>
						</div>
					</div>

				</div>
			</div>
		</div>

		<!--/col-->
	</div>
	<!--/条件查找-->
</div>
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<!--
							<button shiro:hasPermission="wallpaper:bzAllWallpaper:add" type="button" class="btn  btn-primary" onclick="add()">
								<i class="fa fa-upload" aria-hidden="true"></i>上传图片
							</button>
							-->
							<button shiro:hasPermission="wallpaper:bzAllWallpaper:batchEdit" type="button" class="btn  btn-success"
									onclick="batchEdit(2)">
								批量通过
							</button>
							<button shiro:hasPermission="wallpaper:bzAllWallpaper:batchEdit" type="button" class="btn  btn-danger"
									onclick="batchEdit(3)">
								批量不通过
							</button>
							<button  type="button" class="btn  btn-success" onclick="reLoadStatus(1)" id="count1">
								待审核
							</button>
							<button  type="button" class="btn  btn-primary" onclick="reLoadStatus(2)" id="count2">
								已通过
							</button>
							<button  type="button" class="btn  btn-default" onclick="reLoadStatus(3)" id="count3">
								已拒绝
							</button>
							<button shiro:hasPermission="wallpaper:bzAllWallpaper:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
								<i class="fa fa-trash" aria-hidden="true"></i>批量删除
							</button>
						</div>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>
						<div class="columns pull-right">
							<button class="btn btn-default" onclick="restLoad()" style="margin-right: 20px;">重置</button>
						</div>
						<div class="columns pull-right col-md-2 nopadding">

						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_resetPwd_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="wallpaper:bzAllWallpaper:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="wallpaper:bzAllWallpaper:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="wallpaper:bzAllWallpaper:resetPwd">
			<script type="text/javascript">
				var s_resetPwd_h = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>

	<script type="text/javascript" src="/js/appjs/wallpaper/bzAllWallpaper/bzAllWallpaper.js" th:src="@{/js/appjs/wallpaper/bzAllWallpaper/bzAllWallpaper.js}"></script>
	<script>
		var date = new Date();
		let tDate = date .getFullYear();
		let tMonth = (date .getMonth() < 10 ? 0 +""+(date .getMonth() +1 ) : date .getMonth());
		let tDay = (date .getDate()<10?0+""+date .getDate() : date .getDate());
		tDate = tDate + "-"+tMonth+"-"+tDay;

		$("#createTime").val(tDate);
		$(function (){
			layui.use(['upload','laydate'], function () {
				layui.laydate.render({
					elem: '#createTime' //指定元素
					,type:'date'
					/*,range: true*/
					,format:'yyyy-MM-dd'//默认格式
					,value: ''//初始默认时间 2020-02-22
					,min: '2017-1-1'
					,max:  0
					,theme: '#393D49'
					,ready: function(date){
						console.log(date); //得到初始的日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
					}
					,change: function(value, date, endDate){
						console.log(value); //得到日期生成的值，如：2017-08-18
					}
					,done: function(value, date, endDate){
						console.log(value); //得到日期生成的值，如：2017-08-18

					}
				});
			})
		})
	</script>
</body>
</html>